import { Component, OnInit } from '@angular/core';

import { ArticleComment } from './shared/article-comment.model';
import { ArticleCommentService } from './shared/article-comment.service';

@Component({
	selector: 'article-comment',
	templateUrl: 'article-comment.component.html',
	providers: [ArticleCommentService]
})

export class ArticleCommentComponent implements OnInit {
	articleComment: ArticleComment[] = [];

	constructor(private articleCommentService: ArticleCommentService) { }

	ngOnInit() {
		this.articleCommentService.getList().subscribe((res) => {
			this.articleComment = res;
		});
	}
}